<!-- Box -->
    <div class="box">
        <!-- Box Head -->
        <div class="box-head">
            <h2>Photo / Audio / Video Uploader</h2>
        </div>
        <!-- End Box Head -->
        <form enctype="multipart/form-data" method="POST" action="<?php echo site_url('admin/gallery/upload/');?>">
        <div class="form">
            <p class="inline-field">
                <input type="radio" name="file_type"/><strong>Photo</strong>
                <input type="radio" name="file_type"/><strong>Audio</strong>
                <input type="radio" name="file_type"/><strong>Video</strong>
                <input type="file" name="userfile" />
            </p>
        </div>
        <div class="buttons">
            <input type="submit" value="Upload" />
            &nbsp;&nbsp;
            <a href="admin.php" class="ico home">Back</a>
        </div>
            </form>
    </div>
    <div id="content">
        <div class="box">
            <div class="box-head">
                <h2><a href="#">Photo</a> | <a href="#">Audio</a> | <a href="#">Video</a></h2>
            </div>
            <div class="form">
            <?php
                if ($pic_list)
                {
                   foreach ($pic_list as $row)
                   {
             ?>
                <div class="pic-box">
                    <a href="<?php echo base_url()."/thumbnail.php?width=800&height=600&image=".base_url().'/uploads/';echo $row->file_name;?>" rel="example1" title="">
                            <img src="<?php echo base_url()."/thumbnail.php?width=140&height=100&image=".base_url().'/uploads/';echo $row->file_name;?>"/>
                    </a>
                    
                </div>
            <?php }} ?>
            </div>
            <div class="pag">
                <div class="left">Showing 1-12 of 44</div>
                <div class="right">
                    <a href="#">Previous</a>
                    <a href="#">1</a>
                    <a href="#">2</a>
                    <a href="#">3</a>
                    <a href="#">4</a>
                    <a href="#">245</a>
                    <span>...</span>
                    <a href="#">Next</a>
                    <a href="#">View all</a>
                </div>
            </div>
            <div class="buttons">
                <a class="">Upload</a>&nbsp;&nbsp;
                <a href="admin.php" class="ico home">Back</a>
            </div>
        </div>
    </div>
    <!-- End Box -->